package com.passengerflowmanagementsystem.statistics.domain;

import com.passengerflowmanagementsystem.common.annotation.Excel;
import com.passengerflowmanagementsystem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 网关对象 em_getway
 * 
 * @author sheng
 * @date 2024-10-28
 */
public class EmGetway extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 网关ID */
    private Long getwayId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 网关名称 */
    @Excel(name = "网关名称")
    private String getwayName;

    /** 网关MAC地址 */
    @Excel(name = "网关MAC地址")
    private String macAddr;

    /** 网关型号 */
    @Excel(name = "网关型号")
    private String modelNumber;

    /** 网关IP */
    @Excel(name = "网关IP")
    private String ip;

    /** 网关端口 */
    @Excel(name = "网关端口")
    private String port;

    /** 网关子网掩码 */
    @Excel(name = "网关子网掩码")
    private String subnetMask;

    /** 网关状态（0正常 1停用） */
    @Excel(name = "网关状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setGetwayId(Long getwayId) 
    {
        this.getwayId = getwayId;
    }

    public Long getGetwayId() 
    {
        return getwayId;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setGetwayName(String getwayName) 
    {
        this.getwayName = getwayName;
    }

    public String getGetwayName() 
    {
        return getwayName;
    }
    public void setMacAddr(String macAddr) 
    {
        this.macAddr = macAddr;
    }

    public String getMacAddr() 
    {
        return macAddr;
    }
    public void setModelNumber(String modelNumber) 
    {
        this.modelNumber = modelNumber;
    }

    public String getModelNumber() 
    {
        return modelNumber;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setSubnetMask(String subnetMask) 
    {
        this.subnetMask = subnetMask;
    }

    public String getSubnetMask() 
    {
        return subnetMask;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("getwayId", getGetwayId())
            .append("tenantId", getTenantId())
            .append("getwayName", getGetwayName())
            .append("macAddr", getMacAddr())
            .append("modelNumber", getModelNumber())
            .append("ip", getIp())
            .append("port", getPort())
            .append("subnetMask", getSubnetMask())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
